Equality in switching statements